<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vue示例</title>
<script src="https://cdn.bootcdn.net/ajax/libs/vue/3.2.40/vue.global.js"></script>
</head>
<body>
<div id="app">
</div>
<script>
const app = Vue.createApp({
data() { return {}
},
methods: {
},
computed: {
},
watch: {
},
created() {
    throw new Error('err')
},
})

app.config.errorHandler=(err,vm,info)=>{
console.error(err);
console.log(vm)
console.log(info)
}
app.mount("#app");
</script>
</body>
</html>